From eb0538e93bbf773b85778ba1f838b57c9de49289 Mon Sep 17 00:00:00 2001 From: Gerd Moellmann Date: Mon, 19 Feb 2001 12:23:24 +0000 Subject: [PATCH] (malloc_initialize_hook): Handle case thet `environ' is null. --- src/emacs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/emacs.c b/src/emacs.c index e2b1bffe819..023c036e566 100644 --- a/src/emacs.c +++ b/src/emacs.c @@ -675,7 +675,7 @@ malloc_initialize_hook () { char **p; - for (p = environ; *p; p++) + for (p = environ; p && *p; p++) if (strncmp (*p, "MALLOC_CHECK_=", 14) == 0) { do -- 2.30.2